﻿using System;
using System.Data;
using System.Web.UI.WebControls;
using ASPNETVN.PORTAL.Components.Helpers;
using ASPNETVN.PORTAL.Components.Security;
using ASPNETVN.PORTAL.Components.UI;
using ASPNETVN.PORTAL.Modules.GUIDE.Components;
using ASPNETVN.PORTAL.Components.Share;
using System.Web;


namespace ASPNETVN.PORTAL.Modules.GUIDE.Controls
{
    public partial class Detail : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.ItemID != 0)
            {
                    DataTable dt = Components.Article.GetArticle_ByArticleID(this.ItemID).Tables[0];
                    lblTitle.Text = dt.Rows[0]["A_Title"].ToString();
                    lblGuider.Text = dt.Rows[0]["G_Title"].ToString();
                    lblCatagory.Text = dt.Rows[0]["C_Title"].ToString();
                    lblBody.Text = HttpUtility.HtmlDecode(dt.Rows[0]["A_Body"].ToString());
            }
        }
        
    }
}